<%@page import="com.web.vo.SystemEnum"%>
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>

<html>
	<head>
		<title>JSP for SysLogForm form</title>
	</head>
	<body>
		<html:form action="/syslog">
			<TABLE borderColor="blue" cellSpacing="10" cellPadding="0"
				width="100%" bgColor="#c0c0c0" border="2">
				<TBODY>
					<TR>
						<TD>
							<FONT color="#800000">类型 :<strong><html:select
										style="width:200px" property="type">
										<html:option
											value="<%=SystemEnum.LOG_TYPE_QUERY_NAMELIST.getName()  %>"><%= SystemEnum.LOG_TYPE_QUERY_NAMELIST.getDesc() %></html:option>
										<html:option
											value="<%= SystemEnum.LOG_TYPE_RESUME_DOWNLOAD.getName()  %>"><%=SystemEnum.LOG_TYPE_RESUME_DOWNLOAD.getDesc()%></html:option>
										<html:option
											value="<%= SystemEnum.LOG_TYPE_RESUME_PREVIEW.getName()  %>"><%=SystemEnum.LOG_TYPE_RESUME_PREVIEW.getDesc()%></html:option>
									</html:select> </strong> </FONT>
						</TD>
						<TD>
							<FONT color='#800000'> 用户ID: <html:text
									style="width:200px" property="userid" /> </FONT>
						</TD>
						<TD>
							<FONT color='#800000'> 用户名: <html:text style="width:200px"
									property="username" /> </FONT>
						</TD>
						<TD>
							<FONT color="#800000">时间 :<html:text style="width:200px"
									property="createdt" /> </FONT>
						</TD>
					</TR>
					<TR>
						<TD colspan="2">
							<FONT color="#800000">业务操作内容:<html:text
									style="width:500px" property="msg" />(多个关键字用|分隔) 
						</TD>
						<TD colspan="2">
							<html:submit value="搜索日志" />
						</TD>
					</TR>
				</TBODY>
			</TABLE>
		</html:form>

		<DIV align=center>
			<TABLE cellSpacing="0" cellPadding="10"  cellPadding=0 width="95%" border="2"  >
				<TBODY>

					<tr    bgColor="#c0c0c0" style="border: solid 1px black; border-bottom: 0;">
					    <th width="10%">
							LogerID
						</th>
						<th width="10%">
							类型
						</th>
						<th width="10%">
							用户ID
						</th>
						<th width="10%">
							用户名
						</th>
						<th width="10%">
							日期
						</th>
						<th>
							业务操作内容
						</th>

					</tr>
					<%
						java.util.List dataList = (java.util.List) request
								.getAttribute("datalist");
						if (dataList != null && !dataList.isEmpty())
							for (Object obj : dataList) {
								if (obj == null) {
									continue;
								}

								java.util.Map map = (java.util.Map) obj;
					%>

					<tr>
						<td>
							<%=map.get("id")%>
						</td>
						<td>
							<%=map.get("type")%>
						</td>
						<td>
							<%=map.get("userid")%>
						</td>
						<td>
							<%=map.get("username")%>
						</td>
						<td>
							<%=map.get("createdt")%></td>
						<td>
							<%=map.get("msg")%>
						</td>

					</tr>
					<%
						}
					%>
				
			</table>
			<br />
	</body>
</html>

